 {
        
       cc.Class({
            extends: cc.Component,
            properties: {},
            onLoad: function () {
                Global.notificationCenter.on(Global.eventName.MSG_GET_SHARE_DIAMOND_INFO, this.getHadDiamondNum.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.MSG_GET_YUANBAO_NUM, this.getHadYuanBaoNum.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.MSG_REWARD_INFO, this.afterQueryReward.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.MSG_ENTERGAME_AFTER_SETUSERINFO, this.onAfterSetUserInfoOnce.bind(this), this),
                    Global.notificationCenter.on(Global.eventName.UPDATE_USERINFO_SUCCESSED, this.onAfterSetUserInfo.bind(this), this);
            },
            start: function () {
            },
            onAfterSetUserInfo: function () {
                Global.msgHandler.requestGetYuanBaoNum();
            },
            onAfterSetUserInfoOnce: function () {
                console.log("+++++++++++++发送检查转运红包+++++++++++++++");
                var e = Global.eventName.CMD_REQUEST_REDPACKET_CHECK;
                Global.msgHandler.requestCheckRedPacket(e);
            },
            afterQueryReward: function (e) {
                "query" == e.action && (e.showFirstPay ? (Global.config._isHadFirstRecharge = !1,
                    console.log("data.showFirstPay == 1")) : (Global.config._isHadFirstRecharge = !0,
                    console.log("data.showFirstPay == 0")));
            },
            getHadDiamondNum: function (e) {
                Global.userProfile.setHadDiamondNum(e.hadShareDiamond);
            },
            getHadYuanBaoNum: function (e) {
                e ? e.error ? console.log("error") : e.result && e.result.action == Global.eventName.CMD_GET_YUANBAO_NUM && Global.userProfile.setHadYuanBaoNum(e.result.yuanBao) : console.error("getHadYuanBaoNum data:", e);
            }
        })
    }